import java.util.Arrays;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;

public class RandomTest {
    public static void main(String[] args) {
        Random rand = new Random(System.currentTimeMillis());
        System.out.println(rand.nextBoolean());
        byte[] buffer = new byte[16];
        int[] ai = new int[14];
        rand.nextBytes(buffer);
        for(int i = 0 ; i<ai.length;i++)
        {
            ai[i] = rand.nextInt();
        }
        System.out.println(Arrays.toString(buffer));
        System.out.println(Arrays.toString(ai));
        //double
        System.out.println(rand.nextFloat());
        //Gaussian
        System.out.println(rand.nextGaussian());
        //int
        System.out.println(rand.nextInt());
        //0~26
        System.out.println(rand.nextInt(26));
        //long
        System.out.println(rand.nextLong());
        ThreadLocalRandom r = ThreadLocalRandom.current();
        int val1 = r.nextInt(4,6);
        //int a = rand.nextInt(2,7);
    }
}
